package com.urbainski.componentes.events
{
	import flash.events.Event;
	
	public class MyCrudEvent extends Event
	{
		
		/**
		 * @author Cristian Elder Urbainski
		 * @since 28/12/2011
		 */
		
		public static const CRUD_EVENT_ADD : String = "crudEventAdd";
		public static const CRUD_EVENT_ALTER : String = "crudEventAlter";
		public static const CRUD_EVENT_DELETE : String = "crudEventDelete";
		
		private var _item : Object;
		
		public function get item() : Object {
			return _item;
		}
		
		private var _id : Object;
		
		public function id() : Object {
			return _id;
		}
 		
		public function MyCrudEvent(type:String, id : Object = null, item : Object = null,  
									bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this._id = id;
			this._item = item;
		}
	}
}